Ext.define('Admin.view.system.job.JobForm', {
    extend: 'Admin.ux.form.FormPanel',
    xtype: 'job-form',
    items: [
            {	xtype:'hiddenfield',name:'id'	},
			{
				xtype: 'fieldcontainer',
				fieldLabel: '选择定时器',
				layout: 'hbox',
				items:[
					{
						xtype:'combo',
						flex:3,
					    queryMode: 'local',
					    minChars :1,
					    emptyText:'选择定时器',
					    displayField: 'cron_name',
					    name:'cron',
					    id:'cron',
					    allowBlank:false,
					    forceSelection :true,
					    valueField: 'cron',
					    store : Ext.create('Ext.data.Store',{
				        	 fields: ['cron','cron_name'],
				        	 proxy: {
						        type: 'ajax',
						        url: '/cron/json',
						        reader: {
						            type: 'json'
						        }
						    },
						    autoLoad:true
				        })
					}
				]
			},
			{
			    xtype: 'datetimefield',
			    format:'Y-m-d H:i:s',
			    fieldLabel:'选择触发时间',
			    todayText: '选择时间',
			    hourText: '小时',
			    minValue: new Date(),
			    minuteText: '分钟',
			    name: 'excute_time',
			},  
    ]
});
